package model;

public class ComplexUser {

	private SimpleUser simpleUser;
	private String skill;
	
	
	public ComplexUser(SimpleUser simpleUser, String skill) {
		super();
		this.simpleUser = simpleUser;
		this.skill = skill;
	}

	public ComplexUser()
	{
		
	}
	
	public SimpleUser getSimpleUser() {
		return simpleUser;
	}
	
	public void setSimpleUser(SimpleUser simpleUser) {
		this.simpleUser = simpleUser;
	}
	
	public String getSkill() {
		return skill;
	}
	
	public void setSkill(String skill) {
		this.skill = skill;
	}

	public void info()
	{
		System.out.println("name="+simpleUser.getUserName()+"   age="+simpleUser.getAge()+"    skill="+this.skill);
	}
}
